package com.shoux.api.enm;

/**
 * @author SA
 * @version 1.0
 * @ClassName MsgEnum.java
 * @Description
 * @createTime 2021年05月14日 14:16:00
 */
public enum MsgEnum {

    SIMPLEFAIL("1000","操作失败"),
    SIMPLESUCCESS("1001","操作成功"),
    LOGINSUCCESS("1002","登录成功"),
    LOGINFAIL("1003","登录失败"),
    ACCOUNTLOCKED("1004","账户被锁定请联系管理员"),
    PASSWDEXPIRED("1005","密码过期请联系管理员"),
    ACCOUNTPASSWDERROR("1006","用户名或密码错误"),
    VALIDATECODENULL("1007","验证码为空"),
    VALIDATECODEEXPIRED("1008","验证码过期"),
    VALIDATECODNOTMATCHED("1009","验证码不匹配"),
    EXISTNULL("1010","存在空字段，请按要求填写"),
    PASSNOTSAME("1011","两次密码不一致"),
    NEEDPARAMS("1012","缺乏参数"),
    MSG_LEVERROR("1013","请先调整下级部门的从属关系"),
    MSG_RECORDNOTEXIST("1014","该记录不存在"),
    MSG_CHILDRENERROR("1015","该记录尚有下级存在，不能删除"),
    LOG_NO_MSG("1016","日志提取：没有日志记录 "),
    LOG_MSG("1017","日志提取：正在提取日志 "),
    LOG_ERROR_MSG("1018","日志提取：日志存储发生错误 "),
    LOGIN_NOTLOGIN_MSG("1019","用户尚未登录 "),
    LOGIN_EXPIRE_MSG("1020","用户登录过期，请重新登录 "),
    LOGIN_NOTHASPERM_MSG("1021","未被授权访问该资源，请联系管理员 "),
    UPLOAD_FILE_NULL("1022","上传的文件为空，请重新上传 "),
    COMANPY_CREDIT_CODE_NULL("1023","企业社会信用代码为空"),
    COMANPY_CREDIT_CODE_NOT_EXIST("1024","企业社会信用代码不存在"),
    UPLOAD_FILE_OVER_MAX_LINES("1025","文件内容超过最大行数："),
    ;

    private String code;

    private String desc;

    private MsgEnum(String code,String desc){
        this.code = code;
        this.desc = desc;
    }

    private MsgEnum(String desc){
        this.desc = desc;
    }

    public String getCode(){
        return this.code;
    }
    public String getDesc(){
        return this.desc;
    }
    @Override
    public String toString() {
        return this.desc;
    }

}
